<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>

<script setup>
import { useConfigStore } from '@/stores/syscfg'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { getSysConfig } from '@/apis/sysdict'
// import { addRoute } from '@/router/index'

const store = useConfigStore()
getSysConfig().then((d) => {
  document.title = d.WebSite_Name
  store.setRoutes(d.routes)
  delete d.routes
  store.setConfig(d)
  // addRoute()
})
</script>

<style lang="scss">
@import url('./assets//main.css');
.searchForm {
  margin: 10px;
  padding: 10px;
  background-color: white;
  border-radius: 5px;

  .el-card__header {
    padding: 0px 10px 5px;
  }
  .el-card__body {
    padding: 10px 10px 0;
  }
  .el-form-item {
    margin-bottom: 15px;
    margin-top: 5px;
  }
  .card-header {
    display: inline-flex;
    align-items: center;
    h1 {
      font-size: 16px;
      margin-left: 0.25em;
      color: rgb(12 43 77);
    }
  }
  .el-input__wrapper,
  .el-select-v2 {
    width: 190px
  }
  .el-select{
    width: 190px!important
  }
}
.dataTable {
  border-radius: 5px;
  margin: 10px;
  padding: 10px;
  background-color: white;
  border: 1px solid #e4e7ed;
  .tableBtn {
    margin-bottom: 10px;
  }
  .dataTablePage {
    justify-content: center;
    margin: 10px auto 0;
  }
}
.el-message-box__btns {
  padding: 5px 15px 0;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  float: right;
}
</style>
